package com.yonyou.pmclouds.workstartreport.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.workstartreport.entity.WorkStartCheckVO;
import org.apache.ibatis.annotations.Param;

public interface WorkStartCheckMapper extends BaseMapper<WorkStartCheckVO> {
    /**
     * 通过检查项ID查询
     */
    WorkStartCheckVO selectCheck(@Param("checkId")String checkId);
    /**
     * 通过条件ID查询所有的检查项
     */
    WorkStartCheckVO[] selectAllCheck(@Param("pkWorkquality")String pkWorkquality,@Param("pkWorkstartreport")String pkWorkstartreport);
    /**
     * 通过Id删除检查项
     */
    void deleteCheck(@Param("pkWorkquality")String pkWorkquality,@Param("pkWorkstartreport")String pkWorkstartreport);
    /**
     * 查询所有在单据里面的检查项
     */
    WorkStartCheckVO[] selectByBills(@Param("bills") String bills);
    /**
     * 根据开工报告主键以及pkworkqualitydetail查询检查项pkcheck主键
     */
    WorkStartCheckVO selectPkCheck(@Param("pkWorkStartReport")String pkWorkStartReport,@Param("pkWorkqualitydetail")String pkWorkqualitydetail);
    /**
     * 获取不具备检查项数量
     */
    Integer selectCount(@Param("workStartReport")String pkProject,@Param("pkTenant")String pkTenant);
}
